package com.offcn.sellergoods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.lang.Long;
import java.lang.String;

/**
 *  商品表
 * @Author:ujiuye
 * @Description:Goods构建
 * @Date 2021/2/1 14:19
 *****/
@ApiModel(description = "Goods", value = "Goods")
@TableName(value = "tb_goods")
@Data
public class Goods implements Serializable {

    /**
     * 商品id
     */
    @ApiModelProperty(value = "主键", required = false)
    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Long id;

    /**
     * 商家ID
     */
    @ApiModelProperty(value = "商家ID", required = false)
    @TableField(value = "seller_id")
    private String sellerId;

    /**
     * SPU名
     */
    @ApiModelProperty(value = "SPU名", required = false)
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 默认SKU
     */
    @ApiModelProperty(value = "默认SKU", required = false)
    @TableField(value = "default_item_id")
    private Long defaultItemId;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = false)
    @TableField(value = "audit_status")
    private String auditStatus;

    /**
     * 是否上架
     */
    @ApiModelProperty(value = "是否上架", required = false)
    @TableField(value = "is_marketable")
    private String isMarketable;

    /**
     * 品牌
     */
    @ApiModelProperty(value = "品牌", required = false)
    @TableField(value = "brand_id")
    private Long brandId;

    /**
     * 副标题
     */
    @ApiModelProperty(value = "副标题", required = false)
    @TableField(value = "caption")
    private String caption;

    /**
     * 一级类目
     */
    @ApiModelProperty(value = "一级类目", required = false)
    @TableField(value = "category1_id")
    private Long category1Id;

    /**
     * 二级类目
     */
    @ApiModelProperty(value = "二级类目", required = false)
    @TableField(value = "category2_id")
    private Long category2Id;

    /**
     * 三级类目
     */
    @ApiModelProperty(value = "三级类目", required = false)
    @TableField(value = "category3_id")
    private Long category3Id;

    /**
     * 小图
     */
    @ApiModelProperty(value = "小图", required = false)
    @TableField(value = "small_pic")
    private String smallPic;

    /**
     * 商城价
     */
    @ApiModelProperty(value = "商城价", required = false)
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 分类模板ID
     */
    @ApiModelProperty(value = "分类模板ID", required = false)
    @TableField(value = "type_template_id")
    private Long typeTemplateId;

    /**
     * 是否启用规格
     */
    @ApiModelProperty(value = "是否启用规格", required = false)
    @TableField(value = "is_enable_spec")
    private String isEnableSpec;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除", required = false)
    @TableField(value = "is_delete")
    private String isDelete;

}
